// TEX0_CheckConfCtrlPWD.cpp : implementation file
//

#include "stdafx.h"
#include "TEX0_Demo.h"
#include "TEX0_CheckConfCtrlPWD.h"
#include "afxdialogex.h"
#include "TEX0_SDK.h"

// CTEX0_CheckConfCtrlPWD dialog

IMPLEMENT_DYNAMIC(CTEX0_CheckConfCtrlPWD, CDialogEx)

CTEX0_CheckConfCtrlPWD::CTEX0_CheckConfCtrlPWD(CWnd* pParent /*=NULL*/)
	: CDialogEx(CTEX0_CheckConfCtrlPWD::IDD, pParent)
{

}

CTEX0_CheckConfCtrlPWD::~CTEX0_CheckConfCtrlPWD()
{
}

void CTEX0_CheckConfCtrlPWD::DoDataExchange(CDataExchange* pDX)
{
	CDialogEx::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_CONF_CTRL_PWD, m_confCtrlPwd);
}


BEGIN_MESSAGE_MAP(CTEX0_CheckConfCtrlPWD, CDialogEx)
	ON_BN_CLICKED(IDOK, &CTEX0_CheckConfCtrlPWD::OnBnClickedOk)
	ON_BN_CLICKED(IDCANCEL, &CTEX0_CheckConfCtrlPWD::OnBnClickedCancel)
END_MESSAGE_MAP()


// CTEX0_CheckConfCtrlPWD message handlers


void CTEX0_CheckConfCtrlPWD::OnBnClickedOk()
{
	// TODO: Add your control notification handler code here
	int ret;
	UpdateData(TRUE);
	ret = checkConfCtrlPwd(m_confCtrlPwd.GetString());
	CDialogEx::OnOK();
}


void CTEX0_CheckConfCtrlPWD::OnBnClickedCancel()
{
	// TODO: Add your control notification handler code here
	CDialogEx::OnCancel();
}
